//引入封装的公共的请求插件
import {GET, POST, UPLOAD,POSTS} from '@/services/request.js'

export default {
    AddressOrder(data = {})
    {
        return POST({
            url:'product/order/address',
            params:data
        })
    },
    ConfirmOrder(data = {})
    {
        return POST({
            url:'product/order/confirm',
            params:data
        })
    },
    OrderAdd(data = {})
    {
        return POST({
            url:'product/order/add',
            params:data
        })
    },
    toAdd(data = {})
    {
        return POST({
            url:'product/order/toadd',
            params:data
        })
    },
    toPay(data = {})
    {
        return POST({
            url:'product/order/topay',
            params:data
        })
    },
    OrderIndex(data = {})
    {
        return POST({
            url:'product/order/index',
            params:data
        })
    },
    OrderInfo(data = {})
    {
        return POST({
            url:'product/order/info',
            params:data
        })
    },
    toComment(data = {})
    {
        return UPLOAD({
            url:'product/order/comment',
            params:data
        })
    },
    getComment(data = {})
    {
        return UPLOAD({
            url:'product/order/getcomment',
            params:data
        })
    },
    toGet(data = {})
    {
        return POST({
            url:'product/order/getgoods',
            params:data
        })
    },
    OrderRate(data = {})
    {
        return POSTS({
            url:'product/order/rate',
            params:data
        })
    },
    toBack(data = {})
    {
        return POST({
            url:'product/order/toback',
            params:data 
        })
    },
}